// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.gen;

import codej.ast.*;

/** @author Luca Marrocco */
public class VisitorGenerator implements Generator {
	private Visitor visitor;

	public Generator generate(CompilationUnit compilationUnit) {
		visitor.visit(compilationUnit);
		return this;
	}

	public Visitor getVisitor(Visitor visitor) {
		return visitor;
	}

	public void setVisitor(Visitor visitor) {
		this.visitor = visitor;
	}
}
